package com.wkt.ggkt.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单明细 订单明细
 * </p>
 *
 * @author wkt
 * @since 2023-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderDetail implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 课程封面
     */
    private String cover;

    /**
     * 订单编号
     */
    private Long orderId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 原始金额
     */
    private BigDecimal originAmount;

    /**
     * 优惠劵减免金额
     */
    private BigDecimal couponReduce;

    /**
     * 最终金额
     */
    private BigDecimal finalAmount;

    /**
     * 会话id 当前会话id 继承购物车中会话id
     */
    private String sessionId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer isDeleted;


}
